<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: esp8266/system.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_cc2d49507704e901eabd8a82be491fc5.html">esp8266</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">system.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>System memory and reset utilities.  
<a href="#details">More...</a></p>

<p><a href="system_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a9d4b5df3530d1bc733070a4669ba6ebc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#a9d4b5df3530d1bc733070a4669ba6ebc">free</a>(p)&#160;&#160;&#160;<a class="el" href="system_8h.html#a61f06ee340417c629633142e0a5db288">safefree</a>(p)</td></tr>
<tr class="separator:a9d4b5df3530d1bc733070a4669ba6ebc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3a606b2415cc9127bbb52d8ed5d3191"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#ad3a606b2415cc9127bbb52d8ed5d3191">calloc</a>(n,  s)&#160;&#160;&#160;<a class="el" href="system_8h.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a>(n,s)</td></tr>
<tr class="separator:ad3a606b2415cc9127bbb52d8ed5d3191"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bb12c9cae32ecd32a4584a86c4c6c99"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#a6bb12c9cae32ecd32a4584a86c4c6c99">malloc</a>(s)&#160;&#160;&#160;<a class="el" href="system_8h.html#aca19f0f1e5d805c1e5f61101fa4690f1">safemalloc</a>(s)</td></tr>
<tr class="separator:a6bb12c9cae32ecd32a4584a86c4c6c99"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7d3ee70a877e8e98235593af1d92a350"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#a7d3ee70a877e8e98235593af1d92a350">freeRam</a> (void)</td></tr>
<tr class="memdesc:a7d3ee70a877e8e98235593af1d92a350"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return Free memory.  <a href="#a7d3ee70a877e8e98235593af1d92a350">More...</a><br /></td></tr>
<tr class="separator:a7d3ee70a877e8e98235593af1d92a350"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a685d93545b12079d00ffc678d3611333"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#a685d93545b12079d00ffc678d3611333">PrintRam</a> (void)</td></tr>
<tr class="memdesc:a685d93545b12079d00ffc678d3611333"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display Free memory and regions.  <a href="#a685d93545b12079d00ffc678d3611333">More...</a><br /></td></tr>
<tr class="separator:a685d93545b12079d00ffc678d3611333"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65ca18fba3d6cdb9ce8ca8040a96e0c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a> (<a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> nmemb, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> size)</td></tr>
<tr class="memdesc:a65ca18fba3d6cdb9ce8ca8040a96e0c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Safe Calloc - Display Error message if Calloc fails.  <a href="#a65ca18fba3d6cdb9ce8ca8040a96e0c5">More...</a><br /></td></tr>
<tr class="separator:a65ca18fba3d6cdb9ce8ca8040a96e0c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca19f0f1e5d805c1e5f61101fa4690f1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#aca19f0f1e5d805c1e5f61101fa4690f1">safemalloc</a> (<a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> size)</td></tr>
<tr class="memdesc:aca19f0f1e5d805c1e5f61101fa4690f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Safe Malloc - Display Error message if Malloc fails.  <a href="#aca19f0f1e5d805c1e5f61101fa4690f1">More...</a><br /></td></tr>
<tr class="separator:aca19f0f1e5d805c1e5f61101fa4690f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61f06ee340417c629633142e0a5db288"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#a61f06ee340417c629633142e0a5db288">safefree</a> (void *p)</td></tr>
<tr class="memdesc:a61f06ee340417c629633142e0a5db288"><td class="mdescLeft">&#160;</td><td class="mdescRight">Safe free - Only free a pointer if it is in malloc memory range. We want to try to catch frees of static or bogus data.  <a href="#a61f06ee340417c629633142e0a5db288">More...</a><br /></td></tr>
<tr class="separator:a61f06ee340417c629633142e0a5db288"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d3120b9c1d6fa02648d6e317f0f6e44"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#a3d3120b9c1d6fa02648d6e317f0f6e44">reset</a> (void)</td></tr>
<tr class="memdesc:a3d3120b9c1d6fa02648d6e317f0f6e44"><td class="mdescLeft">&#160;</td><td class="mdescRight">reset system  <a href="#a3d3120b9c1d6fa02648d6e317f0f6e44">More...</a><br /></td></tr>
<tr class="separator:a3d3120b9c1d6fa02648d6e317f0f6e44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b9f170e9a01e51b57656fcda1f183df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="system_8h.html#a9b9f170e9a01e51b57656fcda1f183df">wdt_reset</a> (void)</td></tr>
<tr class="memdesc:a9b9f170e9a01e51b57656fcda1f183df"><td class="mdescLeft">&#160;</td><td class="mdescRight">reset watchdog  <a href="#a9b9f170e9a01e51b57656fcda1f183df">More...</a><br /></td></tr>
<tr class="separator:a9b9f170e9a01e51b57656fcda1f183df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>System memory and reset utilities. </p>
<p>h</p>
<dl class="section user"><dt>Copyright &copy; 2015 Mike Gore, GPL License</dt><dd></dd></dl>
<dl class="section user"><dt>You are free to use this code under the terms of GPL</dt><dd>please retain a copy of this notice in any code you use it in.</dd></dl>
<p>This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>

<p>Definition in file <a class="el" href="system_8h_source.html">system.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="ad3a606b2415cc9127bbb52d8ed5d3191"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define calloc</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">n, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">s&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="system_8h.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a>(n,s)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="system_8h_source.html#l00033">33</a> of file <a class="el" href="system_8h_source.html">system.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9d4b5df3530d1bc733070a4669ba6ebc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define free</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">p</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="system_8h.html#a61f06ee340417c629633142e0a5db288">safefree</a>(p)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="system_8h_source.html#l00032">32</a> of file <a class="el" href="system_8h_source.html">system.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6bb12c9cae32ecd32a4584a86c4c6c99"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define malloc</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">s</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="system_8h.html#aca19f0f1e5d805c1e5f61101fa4690f1">safemalloc</a>(s)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="system_8h_source.html#l00034">34</a> of file <a class="el" href="system_8h_source.html">system.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a7d3ee70a877e8e98235593af1d92a350"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> freeRam </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return Free memory. </p>
<dl class="section return"><dt>Returns</dt><dd>free memory in bytes. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="system_8c.html#a22b308551dea873face80619301d5618" title="malloc buffer POSIX function ">malloc()</a>. </dd></dl>

<p>Definition at line <a class="el" href="system_8c_source.html#l00104">104</a> of file <a class="el" href="system_8c_source.html">system.c</a>.</p>

</div>
</div>
<a class="anchor" id="a685d93545b12079d00ffc678d3611333"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void PrintRam </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Display Free memory and regions. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p>Definition at line <a class="el" href="system_8c_source.html#l00113">113</a> of file <a class="el" href="system_8c_source.html">system.c</a>.</p>

<p>Referenced by <a class="el" href="system_8c_source.html#l00069">calloc()</a>, <a class="el" href="system_8c_source.html#l00087">free()</a>, <a class="el" href="system_8c_source.html#l00051">malloc()</a>, <a class="el" href="system_8c_source.html#l00128">safecalloc()</a>, <a class="el" href="system_8c_source.html#l00165">safefree()</a>, <a class="el" href="user__main_8c_source.html#l00971">setup()</a>, and <a class="el" href="user__main_8c_source.html#l00631">user_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a3d3120b9c1d6fa02648d6e317f0f6e44"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void reset </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>reset system </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p>Definition at line <a class="el" href="system_8c_source.html#l00181">181</a> of file <a class="el" href="system_8c_source.html">system.c</a>.</p>

</div>
</div>
<a class="anchor" id="a65ca18fba3d6cdb9ce8ca8040a96e0c5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void* safecalloc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>nmemb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Safe Calloc - Display Error message if Calloc fails. </p>
<ul>
<li>We check if the pointer was in the heap.</li>
<li>Otherwise it may have been statically defined - display error. <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">nmemb</td><td>number of elements </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>size of elements </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void. </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="system_8c_source.html#l00128">128</a> of file <a class="el" href="system_8c_source.html">system.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00302">copy()</a>, <a class="el" href="fatfs__tests_8c_source.html#l00313">fatfs_ls()</a>, <a class="el" href="posix_8c_source.html#l01876">fdevopen()</a>, <a class="el" href="web_8c_source.html#l00853">html_msg()</a>, <a class="el" href="matrix_8c_source.html#l00048">MatAlloc()</a>, <a class="el" href="posix_8c_source.html#l02355">new_file_descriptor()</a>, <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>, <a class="el" href="queue_8c_source.html#l00038">queue_new()</a>, <a class="el" href="web_8c_source.html#l00526">rwbuf_create()</a>, <a class="el" href="system_8c_source.html#l00146">safemalloc()</a>, <a class="el" href="server_8c_source.html#l00100">servertest_setup()</a>, <a class="el" href="stringsup_8c_source.html#l00774">stralloc()</a>, and <a class="el" href="stringsup_8c_source.html#l00750">strnalloc()</a>.</p>

</div>
</div>
<a class="anchor" id="a61f06ee340417c629633142e0a5db288"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void safefree </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Safe free - Only free a pointer if it is in malloc memory range. We want to try to catch frees of static or bogus data. </p>
<ul>
<li>We check if the pointer was in the heap.</li>
<li>Otherwise it may have been statically defined - display error. <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p</td><td>pointer to free. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void. </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="system_8c_source.html#l00165">165</a> of file <a class="el" href="system_8c_source.html">system.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00302">copy()</a>, <a class="el" href="fatfs__tests_8c_source.html#l00313">fatfs_ls()</a>, <a class="el" href="fatfs__tests_8c_source.html#l00101">fatfs_tests()</a>, <a class="el" href="posix_8c_source.html#l02311">free_file_descriptor()</a>, <a class="el" href="web_8c_source.html#l00853">html_msg()</a>, <a class="el" href="matrix_8c_source.html#l00116">MatFree()</a>, <a class="el" href="posix_8c_source.html#l01922">mkfs()</a>, <a class="el" href="posix_8c_source.html#l02355">new_file_descriptor()</a>, <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>, <a class="el" href="queue_8c_source.html#l00062">queue_del()</a>, <a class="el" href="queue_8c_source.html#l00038">queue_new()</a>, and <a class="el" href="web_8c_source.html#l00487">rwbuf_delete()</a>.</p>

</div>
</div>
<a class="anchor" id="aca19f0f1e5d805c1e5f61101fa4690f1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void* safemalloc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Safe Malloc - Display Error message if Malloc fails. </p>
<ul>
<li>We check if the pointer was in the heap.</li>
<li>Otherwise it may have been statically defined - display error. <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>size </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void. </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="system_8c_source.html#l00146">146</a> of file <a class="el" href="system_8c_source.html">system.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__tests_8c_source.html#l00101">fatfs_tests()</a>, and <a class="el" href="posix_8c_source.html#l01922">mkfs()</a>.</p>

</div>
</div>
<a class="anchor" id="a9b9f170e9a01e51b57656fcda1f183df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void wdt_reset </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>reset watchdog </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p>Definition at line <a class="el" href="system_8c_source.html#l00190">190</a> of file <a class="el" href="system_8c_source.html">system.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00259">cat()</a>, <a class="el" href="posix__tests_8c_source.html#l00302">copy()</a>, <a class="el" href="fatfs__tests_8c_source.html#l00313">fatfs_ls()</a>, <a class="el" href="fatfs__sup_8c_source.html#l00194">fatfs_scan_files()</a>, <a class="el" href="posix_8c_source.html#l00216">fgetc()</a>, <a class="el" href="posix_8c_source.html#l00278">fputc()</a>, <a class="el" href="posix__tests_8c_source.html#l00363">hexdump()</a>, <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>, <a class="el" href="mmc__hal_8c_source.html#l00172">mmc_test_timeout()</a>, <a class="el" href="user__main_8c_source.html#l00971">setup()</a>, <a class="el" href="posix__tests_8c_source.html#l00626">sum()</a>, <a class="el" href="posix__tests_8c_source.html#l00435">testpage()</a>, and <a class="el" href="wire_8c_source.html#l00060">wire_draw()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
